package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.DyCustomer;
import com.ruoyi.system.domain.bo.DyCustomerBo;
import com.ruoyi.system.domain.bo.DyCustomerSumBo;
import com.ruoyi.system.domain.vo.DyAnchorCustomerVo;
import com.ruoyi.system.domain.vo.DyCustomerSumVo;
import com.ruoyi.system.domain.vo.DyCustomerVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 客服Mapper接口
 *
 * @author ruoyi
 * @date 2024-06-20
 */
@Mapper
public interface DyCustomerMapper extends BaseMapperPlus<DyCustomerMapper, DyCustomer, DyCustomerVo> {

    List<DyAnchorCustomerVo> getSumAnchorsCustomer(@Param("anchorIds") List<Long> anchorIds, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    DyCustomerSumVo getSumCustomer(DyCustomerBo bo);

    DyAnchorCustomerVo getSumAnchorCustomer(DyCustomerSumBo customerSumBo);
}
